let mongoose = require('./local')

let Schema = mongoose.Schema

let UserInfoSchema = new Schema({
    username: String,
    email: String,
    password: String,
    phone: String,
    avatar: String,
})

let UserInfoModel = mongoose.model('userInfo', UserInfoSchema, 'userInfo')


let MenuSchema = new Schema({
    path: String,
    name: String,
    icon: String
})

let MenuModel = mongoose.model('menu', MenuSchema, 'menu')

module.exports = {
    UserInfoModel, MenuModel
}